<?php
use yii\helpers\Url;

$action = Yii::$app->controller->action->id;
$id = Yii::$app->getRequest()->get('id', null);
?>
<div class="row">
    <div class="container lh30">
        <a class="topNav" href="<?= Url::to(['/system/site/index']) ?>"><img src="<?= Yii::getAlias('@web/backend/img/home/home.png') ?>" alt="首页"/>返回首页</a>
    </div>
</div>

<div class="row nav-brand-bg borB">
    <div class="container lh30">
        <ul class="nav nav-tabs">
            <li class="active"><a href="">会员档案</a></li>
            <li><a href="<?= Url::to(['analysis']) ?>">会员分析</a></li>
        </ul>
    </div>
</div>

<div class="row borB">
    <div class="container">
        <ul class="nav nav-tabs mt10 smNav" style="position: relative">
            <li<?= $action == 'index' ? ' class="active"' : ''; ?> style=" position: absolute; left: -80px;"><a href="<?= Url::to(['index']) ?>" class="btnMd" style="height: 25px; font-size:12px; padding-right:0;width: 74px; border-radius: 5px; background: #fe7b9d; color: #fff;">返回列表</a></li>
            <li<?= $action == 'basic' ? ' class="active"' : ''; ?>><a href="<?= $id ? Url::to(['basic', 'id' => $id]) : Url::to(['basic']) ?>">基本信息</a></li>
            <li<?= $action == 'constitution' ? ' class="active"' : ''; ?>><a href="<?= $id ? Url::to(['constitution', 'id' => $id]) : 'javascript:;' ?>">体质信息</a></li>
            <li<?= $action == 'server' ? ' class="active"' : ''; ?>><a href="<?= $id ? Url::to(['server', 'id' => $id]) : 'javascript:;' ?>">服务记录</a></li>
            <li<?= $action == 'account' ? ' class="active"' : ''; ?>><a href="<?= $id ? Url::to(['account', 'id' => $id]) : 'javascript:;' ?>">账户信息</a></li>
            <li<?= $action == 'consume' ? ' class="active"' : ''; ?>><a href="<?= $id ? Url::to(['consume', 'id' => $id]) : 'javascript:;' ?>">消费记录</a></li>

        </ul>

    </div>

</div>